<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	System.out.println("path:" + path);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>其他方面打分</title>

	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<script type="text/javascript" src="../js/jquery-easy-ui/jquery.min.js"></script>
	<script type="text/javascript" src="../js/jquery-easy-ui/jquery.easyui.min.js"></script>
	<script type="text/javascript" >
	$(document).ready(function(){
		
		//找到3个文本框
		var text1 = $("#scoreA");
		var text2 = $("#scoreB");
		var text3 = $("#scoreC");
		
		//找到提交按钮
		var button = $("#evat");
		
		button.click(function(){
			if(text1.val()>50 || text1.val()<0 || text1.val() == ""){
				alert("出勤情况评分输入不符合范围!");
				return false;
			}if(text2.val()>30 || text2.val()<0|| text2.val() == ""){
				alert("工作态度评分输入不符合范围!");
				return false;
			}if(text3.val()>20 || text3.val()<0|| text3.val() == ""){
				alert("完成其他工作情况评分输入不符合范围!");
				return false;
			}
			
			var message = "_________________________________________________\n\n" +
	        "注意：其他方面分数一旦提交则无法修改\n"     +
	        "请您确认是否要提交本次分数？\n"    +
	        "_________________________________________________\n\n\n"   +
	        "点击确定则确认提交分数，点击取消放弃";

	    // Ask for confirmation, and abort if we don't get it.
	    if (!confirm(message)) return false;


		    //window.showModalDialog("box.jsp",window,"status:no;scroll:no;dialogWidth:800px;dialogHeight:500px");
			return true;
		});
	});
	</script>
	<style type="text/css">
body{ font-size:12px; font-family:Arial, Helvetica, sans-serif; margin:0; padding:0 0 0 5px;}

a:link{text-decoration : underline;color : #333;} /*链接*/
a:visited {text-decoration : underline ;color : #333 ;} /*已访问链接*/
a:hover {text-decoration : underline;color : #f00 ;} /*鼠标经过链接*/
a:active {text-decoration : none ;color : #333 ;}  /*鼠标按下链接*/

.aebox{ width:100%;}
.aeheadbox{ background:url(<%=path%>/admin/images/btbgm.jpg); height:34px;}
.aeheadl{ height:34px; width:5px; background:url(images/btbgl.jpg) no-repeat; float:left;}
.aeheadm{ height:25px;  padding: 9px 0 0 15px; color:#FFF; font-size:14px;font-weight:bold; float:left;}
.aeheadr{ height:34px; width:3px; background:url(images/btbgr.jpg) no-repeat; float:right;}

.aelist{ width:99%; margin:auto; margin-bottom:5px;}
.aelist tr{ background:#f5f5f5;}
.trlist td{background:#aaa; height:24px;font-weight:bold;color:#FFF;}
.aelist tr:hover{ background:#e6e6e6;}
.list_1,.list_2,.list_3,.list_4,.list_5,.list_6{border-bottom:#e4e4e4 1px solid;border-right:#e4e4e4 1px solid;
border-left:#fff 1px solid;border-top:#fff 1px solid;vertical-align: middle; text-align:center; padding:5px;}
.list_7{border-bottom:#e4e4e4 1px solid;border-right:#e4e4e4 1px solid;
border-left:#fff 1px solid;border-top:#fff 1px solid;vertical-align: middle; text-align:right; padding:5px;}
.list_8{border-bottom:#e4e4e4 1px solid;border-right:#e4e4e4 1px solid;
border-left:#fff 1px solid;border-top:#fff 1px solid;vertical-align: middle; text-align:middle; padding:5px;}
.list_9{border-bottom:#e4e4e4 1px solid;border-right:#e4e4e4 1px solid;
border-left:#fff 1px solid;border-top:#fff 1px solid;vertical-align: middle; text-align:left; padding:5px;}
.list_1{ width:5%;border-left:0px; }
.list_2{width:15%; }
.list_3{width:15%;}
.list_4{width:15%;}
.list_5{width:15%;}
.list_6{width:20%;}
.list_7{width:25%;}
.list_8{width:45%;}
.list_9{width:30%;}

.list_oneline{ background: #CCC;border-right:#999 1px solid; border-bottom:#999 1px solid; border-left:0;border-top:#fff 1px solid; height: 30px; text-align:center; padding-top: 10px;}
.list_oneline2{ background: #eee;border-right:#e4e4e4 1px solid; border-bottom:#e4e4e4 1px solid; border-left:0;border-top:#fff 1px solid; height: 20px; text-align:center; padding-top: 5px;}
.trlist .list_1,.trlist .list_2,.trlist .list_3,.trlist .list_4,.trlist .list_5,.trlist .list_6,.trlist .list_7,.trlist .list_8,.trlist .list_9{ border-right:#999; border-bottom:#999; text-align:center;}
</style>
  </head>
  
  <body>
  <div class="aebox">
 <div class="aeheadbox">
  <div class="aeheadl"></div>
  <div class="aeheadm">其他工作方面打分情况</div>
  <div class="aeheadr"></div>
 </div>
 <div class="aelist">
  <s:form method="POST" action="teacher_evaScoreCommit.action">
  
 <table width="100%" border="0" cellpadding="0" cellspacing="0"> 
 <input type="hidden" name="id" value="${teacher.id}" />
<tr>
 		<td class="list_7">评分项${teacher.id}</td>
	<td class="list_8">得分</td>
	<td class="list_9">说明</td>
 </tr>
 <tr>
 		<td class="list_7">出勤情况</td>
	<td class="list_8">
		<input type="text" size="50" name="scoreA" id="scoreA" />
	</td>
	<td class="list_9">1. 按时参加各种会议；2. 按时参加院内外各种活动等。</td>
 </tr>
  <tr>
 		<td class="list_7">工作态度</td>
	<td class="list_8">
		 <input type="text" size="50" name="scoreB" id="scoreB" />
	</td>
	<td class="list_9">包括为人师表；接受工作任务的态度；认真备课，教案齐全、规范；工作责任心；主动开展工作；团结协作，关心爱护学生等。</td>
 </tr>
  <tr>
 	<td class="list_7">完成其他工作情况</td>
	<td class="list_8"><input type="text" name="scoreC" id="scoreC"/></td>
	<td class="list_9">包括实习、实训，指导毕业论文；带队、指导学生参加各种活动、比赛；服从领导安排，完成学院、部门领导安排的工作等情况。</td>
 </tr>
 <tr >
  <td class="list_8"><input id="evat" type="submit" value="提交" name="B1"/></td>
  <td class="list_9"></td>
 </tr>

 </table>
  </s:form>
 </div>
  </div>
  
  </body>
</html>
